import Layout from '@/pages/public/layout' // 公共部分

const teacher = [{
  path: '/user/teacher',
  component: Layout,
  children: [{
    path: '',
    component: () => import('@/pages/user/teacher/account/index.vue'),
    meta: {
      title: '讲师列表-已认证',
      permission: 'user.teacher.list'
    }
  }, {
    path: 'create',
    component: () => import('@/pages/user/teacher/account/create.vue'),
    meta: {
      title: '新建讲师',
      permission: 'user.teacher.create'
    }
  }, {
    path: ':id/edit',
    component: () => import('@/pages/user/teacher/account/edit.vue'),
    meta: {
      title: '编辑讲师',
      permission: 'user.teacher.edit'
    }
  }, {
    path: 'waiting',
    component: () => import('@/pages/user/teacher/account/waiting/index.vue'),
    meta: {
      title: '待审讲师',
      permission: 'user.teacher.examine.list'
    }
  }, {
    path: 'waiting/:id/examine',
    component: () => import('@/pages/user/teacher/account/waiting/examine.vue'),
    meta: {
      title: '审核讲师',
      permission: 'user.teacher.examine.handle'
    }
  }]
}]

export default teacher
